package com.sanyang.pda.presenter;

import com.sanyang.pda.bean.MovementLogBean;
import com.sanyang.pda.contract.AlreadyDeliveryContract;
import com.sanyang.pda.contract.PackagingContract;
import com.sanyang.pda.net.NetUtils;
import com.wangshen.base.net.bean.BaseRowsAppEntity;
import com.wangshen.base.ui.mvp.base.presenter.BasePresenter;

import java.util.List;

import io.reactivex.functions.Consumer;

public class PackagingPresenter extends BasePresenter<PackagingContract.View> implements PackagingContract.Presenter{

    @Override
    public void unqualifiedRepackageList(int pageNum, int pageSize) {
        NetUtils.geApi().unqualifiedRepackageList(1,10)
                .compose(this.handleEverythingResult())
                .subscribe(new Consumer<BaseRowsAppEntity<List<MovementLogBean>>>() {
                    @Override
                    public void accept(BaseRowsAppEntity<List<MovementLogBean>> listBaseRowsAppEntity) throws Exception {

                    }
                }, new Consumer<Throwable>() {
                    @Override
                    public void accept(Throwable throwable) throws Exception {

                    }
                });
    }
}